package com.jiu345.api.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.jiu345.api.mapper.BannerMapper;
import com.jiu345.api.pojo.Banner;
import com.jiu345.api.service.IBannerService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * package:IGoodsCateServiceImpl
 * @author MrLei QQ:235921049
 * @date 2024-05-21
 * desc:商品分类
 */
@RequiredArgsConstructor
@Service
public class IBannerServiceImpl implements IBannerService {
    private final BannerMapper baseMapper;

    /*商品分类一级*/
    @Override
    public List<Banner> queryList(Banner bo) {
        LambdaQueryWrapper<Banner> wrapper = new LambdaQueryWrapper<>(bo);
        //查询所有分类列表
        //用层级封装组件重新封装后返回
        return baseMapper.selectList(wrapper);
    }

}
